let Main = () => import("@/views/Main.vue");
export default [
    {
        meta: { title: 'home', icon: 'icon-shouye' },
        name: 'home',
        path: '',
        component: Main,
        children:[{
            name: 'homepage',
            path: 'homepage',//不写就直接拼接子路由
            meta: { title: 'home', icon: 'icon-shouye' },
            component: () => import("@/views/Home.vue"),
        }]
    },
    {
        meta: { title: 'operating.manage', icon: 'icon-yunying' },
        name: 'operatingmanage',
        path: 'operatingmanage',
        component: Main,
        children: [{
            meta: { title: 'operating.order' },
            name: 'order',
            path: 'order',
            component: () => import("@/views/operatingmanage/Order.vue"),
        }, {
            meta: { title: 'operating.comments' },
            name: 'comments',
            path: 'comments',
            component: () => import("@/views/operatingmanage/Comments.vue"),
        }, {
            meta: { title: 'operating.freight' },
            name: 'freight',
            path: 'freight',
            component: () => import("@/views/operatingmanage/Freight.vue"),
        }]
    },
    {
        meta: { title: 'good.manage', icon: 'icon-shangpin' },
        name: 'goodmanage',
        path: 'goodmanage',
        component: Main,
        children: [{
            meta: { title: 'good.list' },
            name: 'list',
            path: 'list',
            component: () => import("@/views/goodmanage/List.vue"),
        }, {
            meta: { title: 'good.groupon' },
            name: 'groupon',
            path: 'groupon',
            component: () => import("@/views/goodmanage/Groupon.vue"),
        }, {
            meta: { title: 'good.category' },
            name: 'category',
            path: 'category',
            component: () => import("@/views/goodmanage/Category.vue"),
        }, {
            name: 'edit',
            path: 'edit/:id',
            component: () => import('../views/goodmanage/EditGood.vue'),
            meta: { title: 'good.edit',hidden:true },
            props:true
        }, {
            name: 'create',
            path: 'create',
            component: () => import('../views/goodmanage/CreateGood.vue'),
            meta: { title: 'good.create',hidden:true,keepAlive:true }
        }]
    },
    {
        meta: { title: 'promotion.manage', icon: 'icon-fenlei' },
        name: 'promotionmanage',
        path: 'promotionmanage',
        component: Main,
        children: [{
            meta: { title: 'promotion.advertising' },
            name: 'advertising',
            path: 'advertising',
            component: () => import("@/views/promotionmanage/Advertising.vue"),
        }, {
            meta: { title: 'promotion.vouchers' },
            name: 'vouchers',
            path: 'vouchers',
            component: () => import("@/views/promotionmanage/Vouchers.vue"),
        }]
    },
    {
        meta: { title: 'user.manage', icon: 'icon-yonghu-xianxing' },
        name: 'usermanage',
        path: 'usermanage',
        component: Main,
        children: [{
            meta: { title: 'user.vip' },
            name: 'vip',
            path: 'vip',
            component: () => import("@/views/usermanage/Vip.vue"),
        }, {
            meta: { title: 'user.address' },
            name: 'address',
            path: 'address',
            component: () => import("@/views/usermanage/Address.vue"),
        }]
    },
    {
        meta: { title: 'system.manage', icon: 'icon-31shezhi' },
        name: 'systemmanage',
        path: 'systemmanage',
        component: Main,
        children: [{
            meta: { title: 'system.allocation' },
            name: 'allocation',
            path: 'allocation',
            component: () => import("@/views/systemmanage/Allocation.vue"),
        }, {
            meta: { title: 'system.admin' },
            name: 'admin',
            path: 'admin',
            component: () => import("@/views/systemmanage/Admin.vue"),
        }, {
            meta: { title: 'system.log' },
            name: 'log',
            path: 'log',
            component: () => import("@/views/systemmanage/Log.vue"),
        }, {
            meta: { title: 'system.role' },
            name: 'role',
            path: 'role',
            component: () => import("@/views/systemmanage/Role.vue"),
        }]
    }
]